<div>
	<a class="add" href="{plink System:editMenuItem}">Přidat</a>
</div>

<br style="clear: both;" /><br />

<table class="datagrid" style="width: 100%;">
<tr>
	<th style="width: 64px;"></th>
	<th>Název</th>
	<th>Modul</th>
	<th style="width: 64px;">Úpravy</th>
</tr>
{foreach $menu_view as $item}
<tr>
	<td>
		<a href="{plink System:reorder 'id'=>'dolu', 'ident'=>$item["id_menu"]}">Dolů</a>&nbsp;
		<a href="{plink System:reorder 'id'=>'nahoru', 'ident'=>$item["id_menu"]}">Nahoru</a>
	</td>
	<td>{$item["name"]}</td>
	<td>{$item["module_name"]}</td>
	<td>
		<a class="edit" href="{plink System:editMenuItem 'id'=>$item["id_menu"]}">&nbsp;</a>
		<a class="remove" onclick="return system.confirm('Opravdu si přejete smazat položku?');" href="{plink System:deleteMenuItem  'id'=>$item["id_menu"]}">&nbsp;</a>
	</td>
</tr>

{if !empty($item["sub"])}{include viewSubMenu.phtml, 'sub' => $item["sub"]}{/if}
{/foreach}
</table>
